package define;

public enum WarningDefine 
{
	E_SHEET_WITH_SAME_NAME_WARNING(0, "more than one sheet use same name"),
	E_SHEET_HAS_NO_HEAD_WARNING(1, "sheet has no head"),
	E_SHEET_ALREAD_HAS_HEAD_WARNING(2, "sheet has already had head"),
	E_NO_DEFUALT_WARNING(3, "lost default in switch"),
	E_FILE_WITH_SAME_NAME_WARNING(4, "more than one excel use same name"),
	E_EMPTY_SHEET_WARNING(5, "sheet is empty"),
	E_SHEET_HAS_EXISTS_WARNING(6, "sheet has already exists"),
	E_NO_REFERENCE_WARNING(7, "can't find reference"),
	E_EMPTY_REFERENCE_WARNING(8, "no reference sheet"),
	;
	
	private String m_message;
	private int m_code;
	
	private WarningDefine(int code, String message)
	{
		m_code = code;
		m_message = message;
	}
	
	public int getCode()
	{
		return m_code;
	}
	
	public String getMessage()
	{
		return m_message;
	}
}
